/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package networkvisualize;

/**
 *
 * @author hrushi
 */
public class RefreshThread {
    
    NetVisualize netV;
    int count = 0;
    
    public RefreshThread(NetVisualize obj) {
        netV = obj;
    }
    
    public void run() {
        while(count < 25) {
            try {
            Thread.sleep (2000);
            netV.repaint();
            count++;
            } catch (InterruptedException exc) {
                System.out.println("Thread exc caught");
            }
            
        }
        
    }

}
